﻿<%@ Page language="c#" Codebehind="EditJump.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.DocumentFlow.EditJump" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-cn" />
<meta name="author" content="Herry" />
<meta name="Copyright" content="Copyright (c) 2009 himm.cn" />
<title>EditJump</title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="stylesheet" type="text/css" href="/css/other.css" media="screen" />
<link rel="stylesheet" type="text/css" href="/css/table.css" />
<script language="javascript">
	function delete_confirm(e) {
		if (event.srcElement.outerText == "删除")
		event.returnValue =confirm("您确认要删除?");
	}
	document.onclick=delete_confirm;		
</script>
</head>
	<body>
	<form id="Form1" method="post" runat="server">
    <div class="m">
    <div class="path"><a href="/SubModule/UnitiveDocument/Desktop.aspx">我的桌面</a> >> 步骤跳转：<asp:label id="labTitle" runat="server" Width="318px"></asp:label></div>
    <div class="con">

			<table border="1" bordercolor="#337FB2">

				<tr>
					<td style="width: 61px">条件判断</td>
					<td class="tl"><asp:dropdownlist id="ddFieldName" runat="server" Width="150px" Height="20px"></asp:dropdownlist>&nbsp;<asp:dropdownlist id="ddCompare" runat="server" Width="77px" Height="20px">
								<asp:ListItem Value="1">&gt;</asp:ListItem>
								<asp:ListItem Value="2">=</asp:ListItem>
								<asp:ListItem Value="3">&lt;</asp:ListItem>
								<asp:ListItem Value="4">&gt;=</asp:ListItem>
								<asp:ListItem Value="5">&lt;=</asp:ListItem>
								<asp:ListItem Value="6">&lt;&gt;</asp:ListItem>
							</asp:dropdownlist>&nbsp;<asp:textbox id="txtContant" runat="server" Width="58px" CssClass="inputcss">0</asp:textbox></td>
				</tr>
				<tr>
					<td>分支跳转</td>
					<td class="tl"><asp:dropdownlist id="ddStep" runat="server" Width="150px" Height="20px"></asp:dropdownlist>&nbsp;流转规则：
							<asp:dropdownlist id="ddlFlowRule" runat="server" Width="84px">
								<asp:ListItem Value="0">按人员</asp:ListItem>
								<asp:ListItem Value="1">按职位</asp:ListItem>
								<asp:ListItem Value="2" Selected="True">按项目</asp:ListItem>
							</asp:dropdownlist></td>
				</tr>
				<tr>
					<td></td>
					<td><asp:button id="cmdInsert" accessKey="a" runat="server" Width="56px" Height="20px" CssClass="buttoncss"
							Text="新增"></asp:button><asp:button id="cmdReturn" accessKey="r" runat="server" Width="60px" CssClass="buttoncss" Text="返回"></asp:button></td>
				</tr>
				</table>
                <p>&nbsp;</p>
                <asp:datagrid id="dgJumpList" runat="server" Width="100%" BorderColor="#93BEE2" BorderStyle="None"
								BorderWidth="1px" BackColor="White" CellPadding="3" AutoGenerateColumns="False" AllowPaging="True" OnPageIndexChanged="DataGrid_PageChanged"
								HorizontalAlign="Center" AllowSorting="True" DataKeyField="Priority" OnEditCommand="MyGrid_Move" OnDeleteCommand="MyGrid_Delete">
								<SelectedItemStyle Font-Bold="True" ForeColor="#CCFF99" BackColor="#009999"></SelectedItemStyle>
								<AlternatingItemStyle  HorizontalAlign="Center" BackColor="#E8F4FF"></AlternatingItemStyle>
								<ItemStyle  HorizontalAlign="Center" ForeColor="#003399" BackColor="White"></ItemStyle>
								<HeaderStyle  Font-Bold="True" HorizontalAlign="Center" ForeColor="White"
									BackColor="#337FB2"></HeaderStyle>
								<FooterStyle HorizontalAlign="Center" ForeColor="#003399" BackColor="#99CCCC"></FooterStyle>
								<Columns>
									<asp:BoundColumn DataField="Priority" HeaderText="优先">
										<HeaderStyle Width="10%"></HeaderStyle>
									</asp:BoundColumn>
									<asp:BoundColumn DataField="field_description" HeaderText="字段">
										<HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
										<ItemStyle HorizontalAlign="Center"></ItemStyle>
									</asp:BoundColumn>
									<asp:BoundColumn DataField="Compare" HeaderText="比较">
										<HeaderStyle Width="10%"></HeaderStyle>
									</asp:BoundColumn>
									<asp:BoundColumn DataField="comparevalue" HeaderText="数字">
										<HeaderStyle Width="10%"></HeaderStyle>
									</asp:BoundColumn>
									<asp:TemplateColumn HeaderText="规则">
										<HeaderStyle Width="10%"></HeaderStyle>
										<ItemTemplate>
											<asp:Label runat="server" Text='<%# GetTranslateFlowRule(DataBinder.Eval(Container, "DataItem.Flow_Rule").ToString()) %>'>
											</asp:Label>
										</ItemTemplate>
										<EditItemTemplate>
										</EditItemTemplate>
									</asp:TemplateColumn>
									<asp:BoundColumn DataField="step_name" HeaderText="转到步骤">
										<HeaderStyle Width="20%"></HeaderStyle>
									</asp:BoundColumn>
									<asp:ButtonColumn Text="删除" HeaderText="操作" CommandName="Delete">
										<HeaderStyle Width="6%"></HeaderStyle>
									</asp:ButtonColumn>
									<asp:EditCommandColumn ButtonType="LinkButton" UpdateText="更新" HeaderText="位置" CancelText="取消" EditText="上移">
										<HeaderStyle Width="6%"></HeaderStyle>
									</asp:EditCommandColumn>
								</Columns>
								<PagerStyle  HorizontalAlign="Right" BackColor="#E8F4FF" Mode="NumericPages"></PagerStyle>
							</asp:datagrid>
    </div>
  </div>
</form>
</body>
</html>
